

import java.awt.*;


import java.awt.event.*;
import javax.swing.*;
import javax.swing.table.*;


public class segundo extends JFrame {

	JTextField t1,t2,t3,t4;
	JLabel lb1,lb2,lb3,lb4;
	
	JButton b1;
	JPanel p1,p2,p3,p4;
	JTabbedPane tb1;

	 JTable table;
	 public  segundo() {
			super("nerea");
			Container c=  getContentPane();
			tb1=new JTabbedPane(); 
			
			
				
		    
		    
		    lb1=new JLabel("telefno"); 
		    lb2 = new JLabel("Direccion"); 
		    lb3=new JLabel("calle"); 
		    lb4 = new JLabel ("puerta");
		    
		    //zona norte
		    
		    JPanel p1 = new JPanel();
	        p1.setLayout(new FlowLayout());
	        p1.add(new JLabel("Telefono"));
	        p1.add(t1 = new JTextField(20));
	        //segunda parte
	        
	      
	        p1.setLayout(new FlowLayout());
	        p1.add(new JLabel("Direccion"));
	        p1.add(t1 = new JTextField(20));
		    
	        //tercera parte
	        
	       
	        p1.setLayout(new FlowLayout());
	        p1.add(new JLabel("Calle"));
	        p1.add(t1 = new JTextField(20));
	        
	        //cuarta parte
	        
	        
	        p1.setLayout(new FlowLayout());
	        p1.add(new JLabel("puerta"));
	        p1.add(t1 = new JTextField(20));
	        
	        b1= new JButton("OK");
		  
		    
		    tb1.addTab("Primero",null,p1,"crear archivo XML"); 
		   
		    c.add(p1);
		    
		    
		    c.setLayout(new BorderLayout());
	        c.add(BorderLayout.NORTH, p1);
	        c.add(BorderLayout.LINE_START, p1);
	        c.add(BorderLayout.AFTER_LAST_LINE, p1);
	        c.add (BorderLayout.SOUTH,p1);
	        c.add (BorderLayout.PAGE_END,b1);

		  
		    
		    
		    setVisible(true);
		    setSize(600,500);
		    setResizable(false);
		    setLocation(190,150); 
		}
	
	 public static void main (String[] args) {
		    segundo pSegundo= new segundo();
		    pSegundo.setDefaultCloseOperation(segundo.EXIT_ON_CLOSE);        
		}  
	
}
